<!DOCTYPE html>
<html>
<head>
    <title>终端列表</title>
    <#include "/header.html">
    <link type="text/css" rel="stylesheet" href="${request.contextPath}/statics/plugins/layui/css/layui.css">
    <style>
       .acceptInfo{
           display: none;
       }
       #upload div{
           margin: 10px auto;
       }
       #upload form{
           margin: 10px auto;
       }
       #upload div>div{
           margin-left:  225px;
           margin-top: 10px;
           margin-bottom: 30px;
       }
    </style>

</head>
<body>
<div id="rrapp" v-cloak>
    <div>
        <div class="grid-btn">
            <form class="form-inline">

                <div class="form-group ">
                    <input type="button" class="btn btn-default form-control" @click="distribuTer" value="机具分配"/>
                    <input type="button" class="btn btn-default form-control" @click="rebackTer" value="机具回拨"/>
                    <!--<input type="button" class="btn btn-default form-control" @click="report" value="报备线上"/>
                    <input type="button" class="btn btn-default form-control" @click="terminalreback" value="终端回拨"/>-->
                </div>
            </form>

        </div>
        <!--<table id="jqGrid"></table>

        <div id="jqGridPager"></div>-->
    </div>



    <div v-show="showReBack" class="panel panel-default">
        <form class="form-horizontal">
            <div class="form-group" >
                <div class="col-sm-2 control-label"> 起始终端号</div>
                <div class="col-sm-8">
                    <input type="text"  class="form-control" v-model="q.startNo"/>
                </div>
            </div>
            <div class="form-group" >
                <div class="col-sm-2 control-label">结束终端号</div>
                <div class="col-sm-8">
                    <input type="text"  class="form-control" v-model="q.endNo"/>
                </div>
            </div>
            <div class="form-group" >
                <div class="col-sm-2 control-label">终端类型</div>
                <div class="col-sm-8">
                    <select v-model="q.terminalType" class="form-control">
                        <option v-for="ter in this.terminalTypes" :value="ter.terminalType">{{ter.terminalName}}</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">接收人姓名:</div>
                <div class="col-sm-8">
                    <input type="text"  class="form-control" v-model="q.name"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">接收人手机号码:</div>
                <div class="col-sm-8">
                    <input type="text" class="form-control" v-model="q.phone"/>
                </div>
                <div class="col-sm-1">
                    <input type="button"  class="btn btn-default" @click="checkAgent" value="查询"/>
                </div>
            </div>
            <div class="form-group" class="acceptInfo" >
                <div class="col-sm-2 control-label"> 接收人id:</div>
                <div class="col-sm-8">
                    <input type="text" class="form-control" readonly="readonly" v-model="q.agentId"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="reback" value="确定"/>
                <input type="button" class="btn btn-primary" @click="rebackCangku" value="一键回拨库存"/>

            </div>
        </form>
    </div>


    <div v-show="showDistribu" class="panel panel-default">
        <form class="form-horizontal">
            <div class="form-group" >
                <div class="col-sm-2 control-label"> 起始终端号</div>
                <div class="col-sm-8">
                    <input type="text"  class="form-control" v-model="q.startNo"/>
                </div>
            </div>
            <div class="form-group" >
                <div class="col-sm-2 control-label">结束终端号</div>
                <div class="col-sm-8">
                    <input type="text"  class="form-control" v-model="q.endNo"/>

                </div>
            </div>
            <div class="form-group" >
                <div class="col-sm-2 control-label">终端类型</div>
                <div class="col-sm-8">
                    <select v-model="q.terminalType" class="form-control">
                        <option v-for="ter in this.terminalTypes" :value="ter.terminalType">{{ter.terminalName}}</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"> 二级平台名称:</div>
                <div class="col-sm-8">
                    <input type="text"  class="form-control check" v-model="q.name"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"> 二级平台手机:</div>
                <div class="col-sm-8">
                    <input type="text"  class="form-control check" v-model="q.phone"/>

                </div>
                <div class="col-sm-1">
                <input type="button"  class="btn btn-default " value="查询" @click="checkAgent"/>
                </div>
            </div>
            <div class="form-group" class="acceptInfo">
                <div class="col-sm-2 control-label"> 二级平台id:</div>
                <div class="col-sm-8">
                    <input type="text" class="form-control" readonly="readonly" v-model="q.sysUserId"/>
                </div>
            </div>

            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="distribu" value="确定"/>

            </div>
        </form>
    </div>


</div>


<script src="${request.contextPath}/statics/js/modules/terminal/handle.js?_${.now?long}"></script>
<script src="${request.contextPath}/statics/plugins/layui/layui.js"></script>

</body>
</html>